<?php 
//Name: loggedinuserheader.php
//Purpose: This script is for displaying the header for logged in users
//CreateDate: 09/29/12

?>
		<div class="logo" onclick="loadHomePage()">TC Aparrel :-)</div>
		
		<div class="login">
			<a href='logout.php' onclick="loadHomePage()">Logout</a>
				<?php 
					session_name('login');
					session_start();
					if(isset($_SESSION['username']))
					{
						echo($_SESSION['username']);
					}
					if(isset($_SESSION['isAdmin']))
					{
						if($_SESSION['isAdmin'] == true)
						{
							echo '<br/><a href="admin.php">AdminPage</a>';
						}
					}
					session_write_close();
				?>
				<br/><a href='cart.php'>View Cart</a>
		</div>
